<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>测试debounceTime</title>
</head>
<body>
<input type="text" placeholder="输入">
<script src="https://unpkg.com/@reactivex/rxjs@5.0.0-beta.7/dist/global/Rx.umd.js"></script>
<script>
 let inp = document.body.children[0];
 let input$ =Rx.Observable.fromEvent(inp,'keyup')
	input$
	.debounceTime(400)
	.pluck('target','value')
	.subscribe(value=>console.log(value));
</script>
</body>
</html>